<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : orderitemsxsl.xsl
    Created on : June 7, 2012, 7:02 PM
    Author     : tri
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
     xmlns:oi="http://xml.netbeans.org/schema/orderItems">
  <xsl:output method="html"/>
  <xsl:template match="/">
    <html>
      <body>
        <xsl:apply-templates/>
      </body>
    </html>
  </xsl:template>

  <xsl:template match = "oi:orderItems">
    <table border ="2" >
      <xsl:for-each select = "oi:orderItem">
        <tr>
          <td>
            <xsl:value-of select="oi:id"/>
          </td>
          <td>
            <xsl:value-of select="oi:orderId"/>
          </td>
          <td>
            <xsl:value-of select="oi:productName"/>
          </td>
          <td>
            <xsl:value-of select="oi:quantity"/>
          </td>
          <td>
            <xsl:value-of select="oi:statusName"/>
          </td>
        </tr>
      </xsl:for-each>
    </table>
  </xsl:template>

</xsl:stylesheet>
